package org.wangle.seckill.mq;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "auth")
public interface Oauth2FeignClient {
    @PostMapping(path = "/oauth/token")
    Map<String,Object> authToken(@RequestParam Map<String,String> param);
}
